<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <TITLE>ThinkPHP示例：数据查询</TITLE>
<link rel='stylesheet' type='text/css' href='__PUBLIC__/Css/common.css'>
 </HEAD>
 <SCRIPT LANGUAGE="JavaScript">
 <!--
	function showTrace(){
		document.getElementById('trace_info').innerHTML = document.getElementById('think_page_trace').innerHTML;
		document.getElementById('think_page_trace').innerHTML = '';
	}
 //-->
 </SCRIPT>
 <BODY onload="showTrace()">
 <div class="main">
 <H2>ThinkPHP示例之：数据查询</H2>
数据查询包括普通查询、组合查询、统计查询、定位查询、动态查询和SQL查询。<BR>
<div class="result" style="font-weight:normal">
普通列表查询结果：<BR>
<volist name="list" id="v">
{$v.id}--{$v.title}<BR>
</volist>
<HR>
带条件查询结果：<BR>
{$vo.title}
<HR>
组合查询结果：<BR>
<volist name="list2" id="v">
{$v.title}<BR>
</volist>
<HR>
定位查询结果：<BR>
{$vo.title}
<HR>
动态查询结果：<BR>
<volist name="topList" id="v">
{$v.id}--{$v.title}<BR>
</volist>
{$vo2.title}
</div>
<div id="trace_info"></div>
 <TABLE cellpadding=2 cellspacing=2>
 <TR>
 <TD></TD>
	<TD >示例源码<BR>控制器IndexAction类<BR><php>highlight_file(LIB_PATH.'Action/IndexAction.class.php');</php></TD>
 </TR>
 </TABLE>
</div>
 </BODY>
</HTML>
